<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<script>
			const obj = {
				a: 123,
				b: 456,
			}
			const extend = {
				extendParams: {
					key: 'asd',
				},
			}
			// assign 以第一个参数对象为基准, 把后面的参数对象赋值到第一个对象里面
			const newObj = Object.assign({}, obj, extend)
			console.log(newObj)
		</script>
	</head>
	<body></body>
</html>
